package com.huishu.goods.controller;


import com.huishu.commons.pojo.Result;
import com.huishu.goods.service.ProductItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @author generator@ljj
* @since 2023-05-29
*/
@RestController
@RequestMapping("/product-item")
@Slf4j
public class ProductItemController {

    @Autowired
    private ProductItemService productItemService;

    @GetMapping("/findItemInfo/{id}")
    public Result findItemInfo(@PathVariable Long id){
        return productItemService.findItemInfo(id);
    }

}
